﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Entities;

/// <summary>
/// Summary description for SupplierData
/// </summary>
public class SupplierData
{
    ShoppingCartDataContext ctx;
    public SupplierData()
    {
        ctx = new ShoppingCartDataContext();
    }

    public IEnumerable<Supplier> AllSupplier()
    {
        IEnumerable<Supplier> list = from s in ctx.Suppliers
                                     select s;
        return list;
    }
}